// 主模块 - 负责协调各模块并初始化应用
import { createUI, getUIElements } from './ui.js';
import { setupEventListeners } from './events.js';
import { getRecords, loadRecords, saveRecords } from './data.js';
import { addRecordToUI } from './records.js';

// === 初始化 ===
export function init() {
  // 创建UI
  createUI();
  
  // 加载记录
  loadRecords(addRecordToUI);
  
  // 设置事件监听器
  const records = getRecords();
  setupEventListeners(records, saveRecords, addRecordToUI);
}